package com.example.day02;

/**
 * @author Lenovo
 */
public class Demo12 {
    public static void main(String[] args) {
        //1：定义两个变量用于保存老虎的体重，单位为kg，这里仅仅体现数值即可
        int weighet1 = 100;
        int weighet2 = 200;

        //2：用三元运算符实现老虎体重的判断，体重相同，返回true，否则，返回false
        boolean b = weighet1 == weighet2 ? true : false;


        //3：输出结果
        System.out.println("b:" + b);
    }
}
